﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CreateServer
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<link href="../../Content/Admin/control.css" rel="stylesheet" type="text/css" />
 <link href="../../Content/template.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine-vi.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine.js" type="text/javascript"></script>
        <script src="../../Scripts/validate.js"></script>
        <link href="../../Content/Style/layoutAll.css" rel="stylesheet" type="text/css" />  
 <script>
    jQuery(document).ready(function () {
        // binds form submission and fields to the validation engine
        jQuery("#formID").validationEngine();
    });
    </script>
<form method="post" action="/Server/CreateServer" id="formID">
<table width="60%">
<tr>
<td>Tên server</td>
<td><input type="text" name="ServerName" class="validate[required]" /></td>
</tr>
<tr>
<td>Ghi chú</td>
<td><input type="text" name="Description" /></td>
</tr>
<tr><td>Loại game</td><td><%if (ViewData["listgame"] != null)
                            { %><%:Html.DropDownList("listgame", "--chọn game--")%><%} %> &nbsp;<img id="img_listgame" /><span id="listgameErr"></span></td></tr>
</table>
<div class="Control">
<input type="submit" value="Tạo mới" class="vadd" />
<%:Html.ActionLink("Quay lại","GetServers","Server", new{@class="vback"}) %>
</div>
</form>
</asp:Content>
